<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
	<meta name="author" content="ThanhKhoaIT" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Untitled 1</title>
</head>

<body>




<?php

/**
 * @author 
 * @copyright 2013
 */

$configPHP = "/config.php";
include_once($configPHP);
include_once($PathOwl . $configPHP);
include_once($PathDatabase . $configPHP);
include_once($PathNTK . $configPHP);
include_once($PathAllPHP);
include_once($PathTable . "/allTable.php");
include_once($PathContent . $configPHP);
include_once($PathTheme . $configPHP);
include_once($PathDefault . $configPHP);
include_once($PathUpload . $configPHP);
include_once($PathAdmin . $configPHP);

$module = "";
$id = "";
$cat = "";
$page = "";
$value = "";

if (!empty($_GET["module"]))
{
    $module = $_GET["module"];
}
if (!empty($_GET["id"]))
{
    $id = $_GET["id"];
}
if (!empty($_GET["cat"]))
{
    $cat = $_GET["cat"];
}
if (!empty($_GET["page"]))
{
    $page = $_GET["page"];
}
if (!empty($_GET["value"]))
{
    $value = $_GET["value"];
}

//$new = new Config();
//$new->Name = "slogan";
//$new->Value = "Demo Website THANHKHOAIT2";
//$new->Insert();
//$new->Update();

//$cg = new Config();
//$cg->Get("slogan");
//echo ($cg->Name);
//echo ($cg->Value);
//


$new = new Account();
$new->UserID = "UI" . rand(10000, 10000000000);
$new->FullName = "Nguyễn Thanh Khoa";
$new->Email = "thanhkhoait@gmail.com";
$new->Facebook = "ThanhKhoaIT";
$new->Skype = "ThanhKhoaIT";
$new->Yahoo = "ThanhKhoaIT";
$new->UserName = "ThanhKhoaIT";
$new->Password = MD5("123123");
$new->Phone = "01212171030";
echo ("Nguyễn Thanh Khoa");
//$new->Insert();


$ac = new Account();
$ac->Get("UI1096968388");
echo($ac->FullName);


switch ($module)
{
    case "home":
        include_once($PageHomePHP);
        break;
    case "contact":
        include_once($PageContactPHP);
        break;
}
?>


</body>
</html>